Repository navigation
ci: classify pull request risk with Jev - #1323
Merged
Merged
Conversation
Co-Authored-By: GPT-6 <noreply@openai.com>
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1ee45b9. Configure here.
Comment on lines
+13
to
+15
| const script = workflow.match(/^ {10}script: \|\n((?: {12}.*\n|\n)+)/m)?.[1]; | ||
| assert.ok(script, "Publish risk label script must exist"); | ||
| const AsyncFunction = Object.getPrototypeOf(async () => {}).constructor; |
There was a problem hiding this comment.
Risk label creation fails when the shared label is absent
The workflow grants only pull-requests: write, but issues.createLabel requires the Issues write permission. On a repository where a target risk label has not been pre-created, the 404 fallback attempts to create it and receives 403, so the classification fails before the PR receives its risk label.
Evidence
.github/workflows/pr-risk-jev.ymlexplicitly grants onlycontents: readandpull-requests: write, so the Issues permission is unset.- The publish path calls
issues.getLabeland, when the shared label is missing, callsissues.createLabelbeforeissues.addLabels. - Creating a repository label requires
issues: write; therefore a missingrisk: low,risk: medium, orrisk: highlabel causes the create call to fail with 403 and prevents publication. - The regression test mocks label creation and does not model GitHub token permissions, so it cannot expose this workflow failure.
Also found at 1 additional location
.github/workflows/pr-risk-jev.yml:13-15
Identified by Warden · code-review · YJ8-XDK
mr-danya
pushed a commit
to mr-danya/sentry-mcp
that referenced
this pull request
Oct 6, 2026
…ntry#1324) On the CLI landing page, the fixed install overscroll banner covers the footer GitHub icon. The repo is already linked in the header, so this drops the redundant footer social icons. **Footer override** Adds a local Starlight `Footer` that keeps pagination/spacing from `@sentry/starlight-theme` but omits the social/GitHub nav. Fixes getsentry#1323 <!-- junior-request-attribution:start --> Requested by **Daniel Szoke**. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC010884QHLG%3A1785506880.261139 --> -- [View Junior Session](https://junior-prod.sentry.dev/conversations/slack%3AC010884QHLG%3A1785506880.261139) [Sentry](https://sentry.sentry.io/explore/conversations/slack%3AC010884QHLG%3A1785506880.261139/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Daniel Szoke <daniel.szoke@sentry.io> Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add automatic Jev risk classification when a non-draft PR opens, receives a push, is reopened, becomes ready for review, or changes its title or description. Manual dispatch accepts a PR number for backfills, including drafts.
The pinned Action reads PR metadata and Git diffs without checking out or executing PR code. Its result updates only the
risk: low,risk: medium, orrisk: highlabel after revision checks. A failed current-revision classification clears the previous verdict; results remain available as workflow artifacts for 30 days.Includes regression coverage for label replacement, stale revisions, failed classifications, concurrent label creation, and idempotent publication, plus operations documentation for the existing
AI_GATEWAY_API_KEYsecret.